package com.tanhua.server.service;

import com.tanhua.dubbo.api.VideoApi;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 刘付磊
 * @date 2021/11/24 0024
 */
@Service
public class SmallVideosService {

    @DubboReference
    private VideoApi videoApi;

    public void saveVideos(MultipartFile videoThumbnail, MultipartFile videoFile) {
        //1.将视频上传到FastDFS上 获取访问url
        //2.将封面图片上传到阿里云oss上 获取访问url
        //3.构造videos对象
        //调用API保存数据到mongoDB上
    }
}
